home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_spotlight_red2.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  6.5 KB  |  273 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_SPOTLIGHT_RED2)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. PT = Emitter.ParticleTypesParams[1]
  36. PT.IsEmitterLocked = true
  37. PT.DrawOrder = 1
  38. PT.Material = ENMAT_PARTICLE_LIGHT
  39.  
  40.  
  41. PT.TextureName = "environment_effect_spotlight2.dds"
  42.  
  43. PT.ParticlesPerSecond = 1.0;
  44. PT.InitialNumberOfParticles = 0.0;
  45. PT.BaseLifeTime = 1.0;
  46. PT.BaseLifeTimeVariance = 0.0;
  47. PT.BaseSpeed = 0.0;
  48. PT.BaseSpeedVariance = 0.0;
  49.  
  50. PT.TangentSpeed = 0.0;
  51. PT.TangentSpeedVariance = 0.0;
  52. local vzbzd4 = D3DXVECTOR3:new(0.0,0.0,0.0)
  53. PT.TangentDirection = vzbzd4
  54. vzbzd4:delete()
  55. PT.TangentAngleMin = 0.0;
  56. PT.TangentAngleMax = 6.28;
  57. PT.IsTangentDependOnBase = false;
  58.  
  59. PT.BaseAngle = 3.0;
  60. PT.BaseAngleVariance = 6.0;
  61. PT.BaseAngleSpeed = 0.1;
  62. PT.BaseAngleSpeedVariance = 0.1;
  63. PT.BaseAngleSpeedDirection = 0;
  64. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  65. PT.BaseDirection = vzbzd5
  66. vzbzd5:delete()
  67. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  68. PT.BaseDirectionVariance = vzbzd6
  69. vzbzd6:delete()
  70. local vzbzd7 = D3DXVECTOR3:new(0,3,0)
  71. PT.BasePosition = vzbzd7
  72. vzbzd7:delete()
  73. local vzbzd8 = D3DXVECTOR3:new(0,0,0)
  74. PT.BasePositionVariance = vzbzd8
  75. vzbzd8:delete()
  76. PT.BaseSize = 21.0;
  77. PT.BaseSizeVariance = 0.0;
  78.  
  79. -- color over time
  80. PT.ColorOverTimeR[1].TimePercent = 0.0;
  81. PT.ColorOverTimeR[1].Value = 1.0;
  82. PT.ColorOverTimeG[1].TimePercent = 0.0;
  83. PT.ColorOverTimeG[1].Value = 0.3;
  84. PT.ColorOverTimeB[1].TimePercent = 0.0;
  85. PT.ColorOverTimeB[1].Value = 0.2;
  86.  
  87. PT.ColorOverTimeR[2].TimePercent = 1.0;
  88. PT.ColorOverTimeR[2].Value = 1.0;
  89. PT.ColorOverTimeG[2].TimePercent = 1.0;
  90. PT.ColorOverTimeG[2].Value = 0.3;
  91. PT.ColorOverTimeB[2].TimePercent = 1.0;
  92. PT.ColorOverTimeB[2].Value = 0.2;
  93.  
  94. -- transparency over time
  95. PT.TransparencyOverTime[1].TimePercent = 0.0;
  96. PT.TransparencyOverTime[1].Value = 1.0;
  97.  
  98. PT.TransparencyOverTime[2].TimePercent = 0.3;
  99. PT.TransparencyOverTime[2].Value = 0.0;
  100.  
  101. PT.TransparencyOverTime[3].TimePercent = 0.31;
  102. PT.TransparencyOverTime[3].Value = 1.0;
  103.  
  104. PT.TransparencyOverTime[4].TimePercent = 0.6;
  105. PT.TransparencyOverTime[4].Value = 0.0;
  106.  
  107. PT.TransparencyOverTime[5].TimePercent = 1.0;
  108. PT.TransparencyOverTime[5].Value = 0.0;
  109.  
  110. -- size over time
  111. PT.SizeOverTime[1].TimePercent = 0.0;
  112. PT.SizeOverTime[1].Value = 1.0;
  113.  
  114. PT.SizeOverTime[2].TimePercent = 1.0;
  115. PT.SizeOverTime[2].Value = 1.0;
  116.  
  117. -- Speed over time
  118. PT.SpeedOverTime[1].TimePercent = 0.0;
  119. PT.SpeedOverTime[1].Value = 0.0;
  120.  
  121. PT.SpeedOverTime[2].TimePercent = 1.0;
  122. PT.SpeedOverTime[2].Value = 0.0;
  123.  
  124. -- Tangent Speed over time
  125. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  126. PT.TangentSpeedOverTime[1].Value = 0.0;
  127.  
  128. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  129. PT.TangentSpeedOverTime[2].Value = 0.0;
  130.  
  131.  
  132. -- GravityAcceleration over time
  133. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  134. PT.GravityAccelerationOverTime[1].Value = 0.0;
  135.  
  136. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  137. PT.GravityAccelerationOverTime[2].Value = 0.0;
  138.  
  139. -- AngleSpeed over time
  140. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  141. PT.AngleSpeedOverTime[1].Value = 0.0;
  142.  
  143. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  144. PT.AngleSpeedOverTime[2].Value = 0.0;
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158. PT = Emitter.ParticleTypesParams[2]
  159. PT.IsEmitterLocked = true
  160. PT.DrawOrder = 2
  161. PT.Material = ENMAT_SIMPLEPARTICLE
  162.  
  163.  
  164. PT.TextureName = "environment_effect_spotlight2.dds"
  165.  
  166. PT.ParticlesPerSecond = 10.0;
  167. PT.InitialNumberOfParticles = 0.0;
  168. PT.BaseLifeTime = 1.0;
  169. PT.BaseLifeTimeVariance = 0.0;
  170. PT.BaseSpeed = 5.0;
  171. PT.BaseSpeedVariance = 0.0;
  172.  
  173. PT.TangentSpeed = 0.0;
  174. PT.TangentSpeedVariance = 0.0;
  175. local vzbzd9 = D3DXVECTOR3:new(0.0,0.0,0.0)
  176. PT.TangentDirection = vzbzd9
  177. vzbzd9:delete()
  178. PT.TangentAngleMin = 0.0;
  179. PT.TangentAngleMax = 6.28;
  180. PT.IsTangentDependOnBase = false;
  181.  
  182. PT.BaseAngle = 3.0;
  183. PT.BaseAngleVariance = 6.0;
  184. PT.BaseAngleSpeed = 0.1;
  185. PT.BaseAngleSpeedVariance = 0.1;
  186. PT.BaseAngleSpeedDirection = 0;
  187. local vzbzd10 = D3DXVECTOR3:new(0.0,1.0,0.0)
  188. PT.BaseDirection = vzbzd10
  189. vzbzd10:delete()
  190. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  191. PT.BaseDirectionVariance = vzbzd11
  192. vzbzd11:delete()
  193. local vzbzd12 = D3DXVECTOR3:new(0,3,0)
  194. PT.BasePosition = vzbzd12
  195. vzbzd12:delete()
  196. local vzbzd13 = D3DXVECTOR3:new(0,0,0)
  197. PT.BasePositionVariance = vzbzd13
  198. vzbzd13:delete()
  199. PT.BaseSize = 37.0;
  200. PT.BaseSizeVariance = 0.0;
  201.  
  202. -- color over time
  203. PT.ColorOverTimeR[1].TimePercent = 0.0;
  204. PT.ColorOverTimeR[1].Value = 1.0;
  205. PT.ColorOverTimeG[1].TimePercent = 0.0;
  206. PT.ColorOverTimeG[1].Value = 0.0;
  207. PT.ColorOverTimeB[1].TimePercent = 0.0;
  208. PT.ColorOverTimeB[1].Value = 0.0;
  209.  
  210. PT.ColorOverTimeR[2].TimePercent = 1.0;
  211. PT.ColorOverTimeR[2].Value = 1.0;
  212. PT.ColorOverTimeG[2].TimePercent = 1.0;
  213. PT.ColorOverTimeG[2].Value = 0.0;
  214. PT.ColorOverTimeB[2].TimePercent = 1.0;
  215. PT.ColorOverTimeB[2].Value = 0.0;
  216.  
  217. -- transparency over time
  218. PT.TransparencyOverTime[1].TimePercent = 0.0;
  219. PT.TransparencyOverTime[1].Value = 0.0;
  220.  
  221. PT.TransparencyOverTime[2].TimePercent = 1.0;
  222. PT.TransparencyOverTime[2].Value = 0.0;
  223.  
  224.  
  225. -- size over time
  226. PT.SizeOverTime[1].TimePercent = 0.0;
  227. PT.SizeOverTime[1].Value = 1.0;
  228.  
  229. PT.SizeOverTime[2].TimePercent = 1.0;
  230. PT.SizeOverTime[2].Value = 1.0;
  231.  
  232. -- Speed over time
  233. PT.SpeedOverTime[1].TimePercent = 0.0;
  234. PT.SpeedOverTime[1].Value = 1.0;
  235.  
  236. PT.SpeedOverTime[2].TimePercent = 1.0;
  237. PT.SpeedOverTime[2].Value = 1.0;
  238.  
  239. -- Tangent Speed over time
  240. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  241. PT.TangentSpeedOverTime[1].Value = 0.0;
  242.  
  243. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  244. PT.TangentSpeedOverTime[2].Value = 0.0;
  245.  
  246.  
  247. -- GravityAcceleration over time
  248. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  249. PT.GravityAccelerationOverTime[1].Value = 0.0;
  250.  
  251. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  252. PT.GravityAccelerationOverTime[2].Value = 0.0;
  253.  
  254. -- AngleSpeed over time
  255. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  256. PT.AngleSpeedOverTime[1].Value = 0.0;
  257.  
  258. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  259. PT.AngleSpeedOverTime[2].Value = 0.0;
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.